<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="estateTag" prefix="estateTag" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>公告信息</title>
<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
	    <link rel="stylesheet" href="../resource/css/whole.css" type="text/css"></link>
	    <link rel="stylesheet" href="../resource/css/memberCenter/infowithoutmenu.css" type="text/css"></link>
		<link rel="stylesheet" href="../resource/css/global.css" type="text/css"></link>
	    <script src="../resource/js/jquery-1.4.2.js"></script>
	    <script type="text/javascript" src="announcementInfo.js"></script>
	    <link rel="stylesheet" type="text/css" href="../resource/css/easyui/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="../resource/css/easyui/icon.css">
		<link rel="stylesheet" type="text/css" href="../resource/css/information/examples.css">
     <link rel="stylesheet" href="../resource/js/kindeditor-4.1/themes/default/default.css" />
	<link rel="stylesheet" href="../resource/js/kindeditor-4.1/plugins/code/prettify.css" />
	<script charset="utf-8" src="../resource/js/kindeditor-4.1/kindeditor-min.js"></script>
	<script charset="utf-8" src="../resource/js/kindeditor-4.1/lang/zh_CN.js"></script>
	<script charset="utf-8" src="../resource/js/kindeditor-4.1/plugins/code/prettify.js"></script>
		<script type="text/javascript"
			src="../resource/js/jquery-impromptu.3.1.min.js"></script>
			
</head>
<body onload="showdiv1()"><estateTag:security></estateTag:security>
	<center><jsp:include page="../index/top.jsp"></jsp:include></center>
 <div style="width: 100%;margin-top: 10px;" align="center">
 <input id="menuCls" type="hidden" value="310">
 	 	<form id="sysAgentBean" name="sysAgentBean"
							onsubmit="return checkform()" action="announcement_saveOrUpdate.shtml"
							method="post">
 	 <table class="layoutTab" style="border: 0px red solid;">
    	<tr>
    	<!--  <td width="20%" align="left" valign="top"><jsp:include page="../menu.jsp"></jsp:include></td> -->
    		<td valign="top" align="center">
    			<div class="position" align="left"><label>您所在的位置：</label>资讯知识管理模块&nbsp;&nbsp;--&gt;&gt;&nbsp;&nbsp;公告管理&nbsp;&nbsp;--&gt;&gt;&nbsp;&nbsp;公告信息维护</div>
    			<br>
    			<div class="info_top"></div>
    				<div class="info_mid" align="center">
    				<center>
    					<table border="0" cellpadding="0" cellspacing="0" width="760px">
					         <tr>
							             <td valign="top" align="center" >
							             <input id="flagtype" type="hidden" value="${flag}"/>
    					<table id="userinfo" width="960px" border="0" cellpadding="1" cellspacing="1">
    					<tr><th colspan="2" align="left" class="title_info1"><b><s:if test="flag==1">
						【公告添加】  <input type="hidden" name="tgAnnouncement.id" value='<s:property value="tgAnnouncement.id"/>'>
					</s:if>
										<s:if test="flag==2">
						【公告详情】
					</s:if>
										<s:if test="flag==3">
						【公告修改】<input type="hidden" name="tgAnnouncement.id" value='<s:property value="tgAnnouncement.id"/>'>
					</s:if></b></th></tr>
					<tr>
    						<td align="right">类型:</td><td align="left" >
    						&nbsp;<s:radio list="#{'0':'拼购','1':'拼抢',2:'曝光维权','3':'论坛公告<font color=#2A00FF>(公告内容包括标点符号120字左右最佳)</font>'}" onclick="showdiv(this)"  name="tgAnnouncement.type"  
											theme="simple" />
							</td>
							</tr>	
    						<tr id="typediv"  ><td align="right">类别:</td><td align="left">
    						 <input type="hidden" value="${id}" name="id"/>
													   <select name="tgAnnouncement.PcategoryId"  onchange="bigCategoryChange()" id="bigCategory">
												<option value="-1">请选择</option>
														<s:iterator value="#pList" var="pdata" >
															<option value="<s:property value="#pdata.id"/>" 
															<s:if test='%{#pdata.id == #pid}'>
															selected="selected"
															</s:if>
															><s:property value="#pdata.name"/></option>
														</s:iterator>
													</select>
														<span id="smallCategory">
														<select name="tgAnnouncement.categoryId" id="categoryId">
													    <option value="-1">请选择</option>
														<s:iterator value="#cList" var="cdata">
															<option value="<s:property value="#cdata.id"/>" 
															<s:if test='%{#cdata.id == #cid}'>
															selected="selected"
															</s:if>
															><s:property value="#cdata.name"/></option>
														</s:iterator>
													</select>
												    </span>
    						</td></tr>
    						<tr><td align="right"  width="15%">	内容：</td><td align="left">
    						<textarea style="width:700px;height:300px;word-wrap:break-word;" id="content1" name="tgAnnouncement.content"><s:property value="tgAnnouncement.content"/></textarea>
    							</td></tr>
							<s:if test="flag==2">
							<tr><td align="right">发布时间:</td><td align="left">
    						&nbsp;<s:property value="tgAnnouncement.creatTimeStr"/>  
    						</td></tr>	
    						</s:if>			
    						<tr>
    					<td align="right">&nbsp;</td>
    					<td align="left">
    					      <s:if test="flag==1">
    						  <input type="submit" value="保 存">&nbsp;&nbsp;
    						  </s:if>
    						   <s:if test="flag==3">
    						  <input type="submit" value="保 存">&nbsp;&nbsp;
    						  </s:if>
							  <input type="button" onclick="goback()" value="返 回">&nbsp;&nbsp;
    						</td>
    					</tr>
    					</table>
    					</td>
    					</tr>
    					
    					</table>
    					</center>
    				</div>
				<div class="info_bottom">&nbsp;</div>
    		</td>
    	</tr>
    </table>
    </form>
    <iframe name="tempF" style="display: none;"></iframe>
 </div>
	<center> <iframe src="../index/footer.html" width="970" height="120" frameborder="0" scrolling="no"></iframe> </center></body>
	
	 <script>

  
   var editor;
        KindEditor.ready(function(K) {
		               editor = K.create('#content1', {
		               allowFileManager : true,
		               uploadJson : '../resource/js/kindeditor-4.1/upload_json.jsp',
				       fileManagerJson : '../resource/js/kindeditor-4.1/file_manager_json.jsp',
                       items : [
					 	           'preview','source', '|', 'undo', 'redo', '|',  'cut', 'copy', 'paste',
						        'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
						        'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
						        'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
						        'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
						        'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image',
						       'insertfile', 'table', 'hr', 'emoticons', 'map', 'pagebreak',
						        'link', 'unlink'
                  ]
                        
                });
        });
  
			
			
</script>
</html>